package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 检测结果对象 sys_car_results
 * 
 * @author ruoyi
 * @date 2022-05-11
 */
public class SysCarResults extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 自增id */
    private Long resId;

    /** 车况信息id */
    @Excel(name = "车况信息id")
    private Long stateInfoId;

    /** 故障数 */
    @Excel(name = "故障数")
    private Long errorNum;

    /** 故障信息 */
    @Excel(name = "故障信息")
    private String errorInfo;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd hh:mm:ss")
    private Date createAt;

    public void setResId(Long resId) 
    {
        this.resId = resId;
    }

    public Long getResId() 
    {
        return resId;
    }
    public void setStateInfoId(Long stateInfoId) 
    {
        this.stateInfoId = stateInfoId;
    }

    public Long getStateInfoId() 
    {
        return stateInfoId;
    }
    public void setErrorNum(Long errorNum) 
    {
        this.errorNum = errorNum;
    }

    public Long getErrorNum() 
    {
        return errorNum;
    }
    public void setErrorInfo(String errorInfo) 
    {
        this.errorInfo = errorInfo;
    }

    public String getErrorInfo() 
    {
        return errorInfo;
    }
    public void setCreateAt(Date createAt) 
    {
        this.createAt = createAt;
    }

    public Date getCreateAt() 
    {
        return createAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("resId", getResId())
            .append("stateInfoId", getStateInfoId())
            .append("errorNum", getErrorNum())
            .append("errorInfo", getErrorInfo())
            .append("createAt", getCreateAt())
            .toString();
    }
}
